<template>
  <div class="h180 pb20 mb10">
    <div class="s-d-flex s-jc-space-between">
      <div>
        <div class="s-tac">
          {{warnBaseSituation.seven}}
        </div>
        <div>近7日预警总数</div>
      </div>
      <div>
        <div class="s-tac">
          {{warnBaseSituation.now}}
        </div>
        <div>正在预警</div>
      </div>
      <div>
        <div class="s-tac">
          {{warnBaseSituation.done}}
        </div>
        <div>已处理</div>
      </div>
    </div>
  </div>
</template>
<script>
import * as statisticsApi from "@/api/statistics";
export default {
  data() {
    return {
      warnBaseSituation: {},
    };
  },
  created() {
    this.handleInitWarnBaseSituation();
  },
  methods: {
    handleInitWarnBaseSituation() {
      statisticsApi.warnBaseSituation().then((res) => {
        if (res && res.success) {
          this.warnBaseSituation = res.data;
        }
      });
    },
  },
};
</script>